/*
 * @FilePath: /reacte-template/src/views/home.tsx
 * @Descripttion:
 * @version: 1.0.0
 * @Author: lijinshen
 * @Date: 2024-05-19 12:30:15
 * @LastEditors: lijinshen
 * @LastEditTime: 2024-05-19 13:04:04
 */
import { Link } from "react-router-dom";
import useStore from "@/store/account";
const Home:React.FC = () => {

  const bears = useStore((state) => state.bears);
  const increase = useStore((state) => state.increase);
  return (
    <div className="flex items-center justify-center w-full h-full">
      <div>
        <h1>Home</h1>
        <Link to="/user">用户页</Link>
        <div className="text-2xl text-red-500">{bears}</div>
        <div className="flex items-center justify-center p-2 text-red-500 border-2 border-red-500 border-solid bg-none"
          onClick={() => {
            increase(2);
          }}
        >
          +2
        </div>
      </div>
    </div>
  );
};
export default Home;
